<template>
  <div class="hometabelUiReset">
    <el-table stripe border :data="tableData" style="width: 100%" height="360" :span-method="spanMethod">
      <template v-if="dataListtype==1">
        <el-table-column
            align="center"
            v-for="(item,index) in tableHeader"
            :key="item.prop"
            :prop="item.prop"
            :label="item.label"
            :width="item.label=='序号' ? '80':item.width"
        />
      </template>
      <template v-if="dataListtype==0">
        <el-table-column
            align="center"
            v-for="(item,index) in tableHeader"
            :key="item"
            :prop="item"
            :label="item"
            :width="item =='序号' ? '80':'auto'"
        />
      </template>
    </el-table>
  </div>
</template>

<script setup lang="ts">
//组件

//接口


//api
import {reactive, ref} from 'vue';

//data
let props = withDefaults(
    defineProps<{
      tableData: any,
      tableHeader: any,
      dataListtype?: string | number,
      long?:{prop:string,width:number}[],
      spanMethod?:any
    }>(),
    {
      tableData:[],
      tableHeader:[],
      dataListtype:0
    }
)

/*
函数
*/

/**************************接口函数**************************/


/**************************操作函数**************************/


</script>

<style lang="scss">

</style>
